import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 获取数据字典
export const getdictList = params => axios.get('/dms.web/part/rest/basedata/partInfos', { params });
// 查询车辆维修健康记录上报情况
export const searchHealthHandle = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/vehicleHealthRecord/queryReportStatus`, { params });
// 根据单号查询出维修项目明细
export const searchProject = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/vehicleHealthRecord/queryLabour/${params.ITEM_ID}`, { params });
// 根据单号查询出维修备件明细
export const searchParts = params => axios.get(`${SERVER.DMSCLOUD_REPAIR}/vehicleHealthRecord/queryPart/${params.ITEM_ID}`, { params });
// 电子健康记录上报
export const upload = params => axios.post(`${SERVER.DMSCLOUD_REPAIR}/vehicleHealthRecord/uploadReset`, params);
